package com.muh.service;

import com.muh.entity.Employee;
import org.springframework.data.domain.Page;

import java.util.List;

public interface EmployeeService {
    Employee save(Employee employee);

    Object saveAll(List<Employee> blogs);

    Employee findById(Long id);

    List<Employee> findAll();

    boolean deleteDocumentById(Long id);

    boolean deleteAll();

    Employee update(Employee employee);

    List<Employee> findEmployeesByAddress(String title);

    Page<Employee> findAllPage(int pageNumber, int pageSize);

    /**
     * 分页
     * @param address
     * @param pageNumber
     * @param pageSize
     * @return
     */
    Page<Employee> findPageByAddress(String address, int pageNumber, int pageSize);

}
